package com.sgroupware.modules.leave;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Leave entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "leave", catalog = "sgroupware")
public class Leave implements java.io.Serializable {

	// Fields

	private Long id;
	private Long proposerId;
	private String proposerName;
	private Long groupId;
	private String groupName;
	private String reason;
	private Integer type;
	private Date startTime;
	private Date endTime;
	private Integer totalDate;
	private Integer totalTime;
	private Date insertTime;
	private Integer state;
	private String stapTitle;
	private String stapName;
	private String branchOpinion;
	private String branchAuditorName;
	private Long branchAuditorId;
	private Integer branchAuditorState;
	private Date branchAuditorTime;
	private String adminOpinion;
	private String adminAuditorName;
	private Long adminAuditorId;
	private Integer adminAuditorState;
	private Date adminAuditorTime;
	private String generalManagerOpinion;
	private String generalManagerAuditorName;
	private Long generalManagerAuditorId;
	private Integer generalManagerState;
	private Date generalManagerAuditorTime;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "proposerId")
	public Long getProposerId() {
		return this.proposerId;
	}

	public void setProposerId(Long proposerId) {
		this.proposerId = proposerId;
	}

	@Column(name = "proposerName")
	public String getProposerName() {
		return this.proposerName;
	}

	public void setProposerName(String proposerName) {
		this.proposerName = proposerName;
	}

	@Column(name = "groupId")
	public Long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Column(name = "groupName")
	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "reason", length = 1000)
	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "startTime", length = 19)
	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "endTime", length = 19)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "totalDate")
	public Integer getTotalDate() {
		return this.totalDate;
	}

	public void setTotalDate(Integer totalDate) {
		this.totalDate = totalDate;
	}

	@Column(name = "totalTime")
	public Integer getTotalTime() {
		return this.totalTime;
	}

	public void setTotalTime(Integer totalTime) {
		this.totalTime = totalTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "insertTime", length = 19)
	public Date getInsertTime() {
		return this.insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "stapTitle")
	public String getStapTitle() {
		return this.stapTitle;
	}

	public void setStapTitle(String stapTitle) {
		this.stapTitle = stapTitle;
	}

	@Column(name = "stapName")
	public String getStapName() {
		return this.stapName;
	}

	public void setStapName(String stapName) {
		this.stapName = stapName;
	}

	@Column(name = "branchOpinion", length = 1000)
	public String getBranchOpinion() {
		return this.branchOpinion;
	}

	public void setBranchOpinion(String branchOpinion) {
		this.branchOpinion = branchOpinion;
	}

	@Column(name = "branchAuditorName")
	public String getBranchAuditorName() {
		return this.branchAuditorName;
	}

	public void setBranchAuditorName(String branchAuditorName) {
		this.branchAuditorName = branchAuditorName;
	}

	@Column(name = "branchAuditorId")
	public Long getBranchAuditorId() {
		return this.branchAuditorId;
	}

	public void setBranchAuditorId(Long branchAuditorId) {
		this.branchAuditorId = branchAuditorId;
	}

	@Column(name = "branchAuditorState")
	public Integer getBranchAuditorState() {
		return this.branchAuditorState;
	}

	public void setBranchAuditorState(Integer branchAuditorState) {
		this.branchAuditorState = branchAuditorState;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "branchAuditorTime", length = 19)
	public Date getBranchAuditorTime() {
		return this.branchAuditorTime;
	}

	public void setBranchAuditorTime(Date branchAuditorTime) {
		this.branchAuditorTime = branchAuditorTime;
	}

	@Column(name = "adminOpinion")
	public String getAdminOpinion() {
		return this.adminOpinion;
	}

	public void setAdminOpinion(String adminOpinion) {
		this.adminOpinion = adminOpinion;
	}

	@Column(name = "adminAuditorName")
	public String getAdminAuditorName() {
		return this.adminAuditorName;
	}

	public void setAdminAuditorName(String adminAuditorName) {
		this.adminAuditorName = adminAuditorName;
	}

	@Column(name = "adminAuditorId")
	public Long getAdminAuditorId() {
		return this.adminAuditorId;
	}

	public void setAdminAuditorId(Long adminAuditorId) {
		this.adminAuditorId = adminAuditorId;
	}

	@Column(name = "adminAuditorState")
	public Integer getAdminAuditorState() {
		return this.adminAuditorState;
	}

	public void setAdminAuditorState(Integer adminAuditorState) {
		this.adminAuditorState = adminAuditorState;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "adminAuditorTime", length = 19)
	public Date getAdminAuditorTime() {
		return this.adminAuditorTime;
	}

	public void setAdminAuditorTime(Date adminAuditorTime) {
		this.adminAuditorTime = adminAuditorTime;
	}

	@Column(name = "generalManagerOpinion")
	public String getGeneralManagerOpinion() {
		return this.generalManagerOpinion;
	}

	public void setGeneralManagerOpinion(String generalManagerOpinion) {
		this.generalManagerOpinion = generalManagerOpinion;
	}

	@Column(name = "generalManagerAuditorName")
	public String getGeneralManagerAuditorName() {
		return this.generalManagerAuditorName;
	}

	public void setGeneralManagerAuditorName(String generalManagerAuditorName) {
		this.generalManagerAuditorName = generalManagerAuditorName;
	}

	@Column(name = "generalManagerAuditorId")
	public Long getGeneralManagerAuditorId() {
		return this.generalManagerAuditorId;
	}

	public void setGeneralManagerAuditorId(Long generalManagerAuditorId) {
		this.generalManagerAuditorId = generalManagerAuditorId;
	}

	@Column(name = "generalManagerState")
	public Integer getGeneralManagerState() {
		return this.generalManagerState;
	}

	public void setGeneralManagerState(Integer generalManagerState) {
		this.generalManagerState = generalManagerState;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "generalManagerAuditorTime", length = 19)
	public Date getGeneralManagerAuditorTime() {
		return this.generalManagerAuditorTime;
	}

	public void setGeneralManagerAuditorTime(Date generalManagerAuditorTime) {
		this.generalManagerAuditorTime = generalManagerAuditorTime;
	}

}